import { Recordable } from "@/utils/types.ts";
import { ContentTypeEnum } from "@/enums/httpEnum.ts";
import service from "@/utils/http/axios";

enum Api {
  Login = '/user/login/admin',
  Logout = '/system/auth/logout',
}

/**
 * @description: user login api
 */
export function loginApi(params: Recordable) {
  return service.post<string>(Api.Login, params, { headers: { 'Content-Type': ContentTypeEnum.FORM_DATA } })
}
